home *** CD-ROM | disk | FTP | other *** search
- property pMyText, pMySize, pMyColor, pMyRollColor, pIsButton
-
- on getPropertyDescriptionList
- description = [:]
- addProp(description, #pMyText, [#default: EMPTY, #format: #string, #comment: "Enter Text:"])
- addProp(description, #pMySize, [#default: 18, #format: #integer, #comment: "Text Size:"])
- addProp(description, #pMyColor, [#default: color(255, 255, 255), #format: #color, #comment: "Text Color:"])
- addProp(description, #pIsButton, [#default: 1, #format: #boolean, #comment: "Use as a button?"])
- addProp(description, #pMyRollColor, [#default: color(0, 0, 255), #format: #color, #comment: "Rollover Text Color:"])
- return description
- end
-
- on beginSprite me
- sprite(me.spriteNum).static = 1
- pMyColor = "0x" & chars(pMyColor.hexString(), 2, 7)
- pMyRollColor = "0x" & chars(pMyRollColor.hexString(), 2, 7)
- end
-
- on GetUrl me, theEvent
- case theEvent of
- "INITIALIZE":
- sprite(me.spriteNum).formatText(pMyText, pMySize, pMyColor)
- "ROLLOVER":
- if pIsButton then
- cursor(280)
- sprite(me.spriteNum).formatText(pMyText, pMySize, pMyRollColor)
- end if
- "ROLLOUT":
- if pIsButton then
- cursor(-1)
- sprite(me.spriteNum).formatText(pMyText, pMySize, pMyColor)
- end if
- end case
- sprite(me.spriteNum).goToFrame(1)
- end
-